package auth

import (
	"context"
	v1 "zuhao-seucre/api/auth/v1"
	"zuhao-seucre/internal/service"
)

func (c *ControllerV1) GetUserInfo(ctx context.Context, req *v1.GetUserInfoReq) (res *v1.GetUserInfoRes, err error) {

	user := service.ContextX().GetUser(ctx)

	res = &v1.GetUserInfoRes{
		User: user,
	}

	return
}
